package com.tskj.mh.tabletennis.quene;

import org.springframework.stereotype.Service;

import java.util.LinkedList;
import java.util.Queue;

@Service
public final class TableTennisQuene {

    private final Queue<QueneItemInfo> queue = new LinkedList<>();

    public Boolean push(QueneItemInfo info) {
        return queue.offer(info);
    }

    public QueneItemInfo pop() {
        return queue.poll();
    }

    public int size() {
        return queue.size();
    }
}
